package DesignPatern.A23_桥梁模式.A01_基本模式;

/**
 * @Author: Du
 * @Date: 2021/8/12 16:27
 */
public abstract class Crop
{
    private Product product;//将产品维度抽象出来，从继承变为聚合
    
    public Crop(Product product)
    {
        this.product = product;
    }
    
    public void makeMoney()
    {
        this.product.beProduct();
        this.product.beSell();
    }
}
